package com.hzsai.nettylearn.server;

import org.springframework.beans.factory.annotation.Value;

import javax.annotation.PostConstruct;
import java.io.IOException;

/**
 * hzsai 2019/12/1
 * usage:
 **/
public class NIOTimeServer {

    @Value("${timeserver.ip}")
    private String ip;

    @Value("${timeserver.port}")
    private String port;

    MultiplexerTimerServer timeServer = null;

    @PostConstruct
    public void postConstruct() throws IOException {
        timeServer = new MultiplexerTimerServer(port);
    }
}
